﻿<controls:ChildWindow x:Class="CARE.Views.ModelEditor"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="Auto" Height="Auto" 
           Title="Epidemiologist disease model editor">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
            <Button x:Name="CreateNode" Height="33" Width="104" Content="Create New Node" Click="CreateNode_Click"/>
            <Button x:Name="Remove" Height="33" Width="104" Content="Remove" Click="Remove_Click"/>
            <Button x:Name="Save" Height="33" Width="104" Content="Save" Click="Save_Click"  />
            <Button x:Name="exportToDatabase" Height="33" Content="Export to database" IsEnabled="False" Click="exportToDatabase_Click"></Button>            
        </StackPanel>
        <Canvas x:Name="rootCanvas" Height="400" Width="600" Grid.Row="1" />
        
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="2" />
    </Grid>
</controls:ChildWindow>